﻿Imports System.Text
Imports FTTK.Entities

Namespace FTTK.Utilities
    Friend NotInheritable Class WebHelper
        Private Sub New()

        End Sub

        Shared Sub New()
            _Subsitutes = New Dictionary(Of String, String)()
            _Subsitutes.Add("=\", "=""")
            _Subsitutes.Add("\ ", """ ")
            _Subsitutes.Add("\", "")
        End Sub


        Private Shared _Subsitutes As Dictionary(Of String, String)

        Public Shared Function ClearHtml(html As String) As String
            If html Is Nothing Then Return html
            For Each key In _Subsitutes.Keys
                html = html.Replace(key, _Subsitutes(key))
            Next
            Return html
        End Function
    End Class
End Namespace